<?php /* Smarty version 2.6.16, created on 2009-04-17 02:14:38
         compiled from Main.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'compress', 'Main.html', 1, false),array('function', 'messages', 'Main.html', 27, false),array('function', 'module', 'Main.html', 35, false),array('function', 'url', 'Main.html', 41, false),array('function', 'language', 'Main.html', 41, false),array('function', 'videoplayer', 'Main.html', 108, false),array('modifier', 'escape', 'Main.html', 111, false),array('modifier', 'clean', 'Main.html', 111, false),array('modifier', 'date_format', 'Main.html', 113, false),)), $this); ?>
<script type="text/javascript" src="<?php echo smarty_function_compress(array('file' => 'design/js/jquery.js'), $this);?>
"></script>
<script type="text/javascript" src="<?php echo smarty_function_compress(array('file' => 'design/js/jquery.corner.js'), $this);?>
"></script>
<?php echo '
<script type="text/javascript">
	$(document).ready(function()
	{
	    $(\'#rounded\').corner(\'15px top\');
	    $(\'#rounded-bottom\').corner(\'15px bottom\');
	    $(\'#round_hot_video\').corner(\'15px\');
	    $(\'#round_box_top\').corner(\'15px top\');
	})

	function change_videos(sName, iId)
	{
		document.getElementById(\'ajax_image_box\').style.display=\'\';
		document.getElementById(\'video_menu_1\').className=\'item\';
		document.getElementById(\'video_menu_2\').className=\'item\';
		document.getElementById(\'video_menu_3\').className=\'item\';
		document.getElementById(\'video_menu_4\').className=\'item\';
		document.getElementById(\'video_menu_\'+ iId +\'\').className=\'item2\';
		xajax_videoBox(sName);
	}

</script>
'; ?>


<?php echo smarty_function_messages(array(), $this);?>

<table style="width:100%;" cellpadding="0" cellspacing="8">
<tr>
<td style="width:65%; vertical-align:top;">

	<div class="jquery_background">
	<div id="rounded" class="border13" style="padding:10px;">
		<div><input type="hidden" id="current_page_count" name="current_page_count" value="1" /></div>
		<div id="latest_added"><?php echo smarty_function_module(array('module' => 'Video','component' => 'AjaxLatest','iNum' => 1), $this);?>
</div>
	</div>
	<div id="rounded-bottom" class="border13" style="">&nbsp;</div>
	</div>

	<div style="padding:10px;">
		<a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.videos','type' => 'recent'), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'core_view_more'), $this);?>
 ]</a>
		<span id="ajax_image_latest" style="font-size: 9pt; position:absolute; padding-left:5px; display:none;">
			<img src="design/pic/loader.gif" alt="" style="vertical-align:middle;" /> <?php echo smarty_function_language(array('text' => 'Mod_Video.loading_videos'), $this);?>

		</span>
	</div>

	<br />
	<br />
	<div style="font-size:12pt; font-weight:bold; padding-bottom:4px; letter-spacing:2px; padding-right:15px;">
		<span id="info_title"><?php echo smarty_function_language(array('text' => 'Mod_Video.ajaxbox.featured'), $this);?>
</span>
		<span id="ajax_image_box" style="font-size: 9pt; position:absolute; padding-left:5px; display:none;">
			<img src="design/pic/loader.gif" alt="" style="vertical-align:top;" /> <?php echo smarty_function_language(array('text' => 'Mod_Video.loading_videos'), $this);?>

		</span>
	</div>
	<div class="jquery_background">
	<table style="width:100%;" cellpadding="0" cellspacing="0" class="border2" id="round_box_top">
	<tr>
		<td style="font-size:8pt;">

		<table style="width:100%;" cellpadding="0" cellspacing="0">
		<tr>
			<td style="font-size:8pt;" class="color">
				<div class="border13">
				<br />
				<table style="width:100%;" cellpadding="0" cellspacing="0">
					<tr>
						<td style="padding-right:5px;width:20%;" class="item3"></td>
							<td id="video_menu_1" class="item2" style="vertical-align:bottom;text-align:center;" onclick="change_videos('featured', '1');">
								<a href="javascript:void(0);"><?php echo smarty_function_language(array('text' => 'Mod_Video.box.featured'), $this);?>
</a>
						</td>
						<td class="item3">&nbsp;</td>
							<td id="video_menu_2" class="item" style="vertical-align:bottom;text-align:center;" onclick="change_videos('most_viewed', '2');">
								<a href="javascript:void(0);"><?php echo smarty_function_language(array('text' => 'Mod_Video.box.viewed'), $this);?>
</a>
						</td>
						<td class="item3">&nbsp;</td>
						<td id="video_menu_3" class="item" style="vertical-align:bottom;text-align:center;" onclick="change_videos('most_comments', '3');">
								<a href="javascript:void(0);"><?php echo smarty_function_language(array('text' => 'Mod_Video.box.comments'), $this);?>
</a>
						</td>
						<td class="item3">&nbsp;</td>
						<td id="video_menu_4" class="item" style="vertical-align:bottom;text-align:center;" onclick="change_videos('rating', '4');">
								<a href="javascript:void(0);"><?php echo smarty_function_language(array('text' => 'Mod_Video.box.rating'), $this);?>
</a>
						</td>
						<td class="item3">&nbsp;</td>
						<td style="padding-right:5px;width:10px;" class="item3"></td>
					</tr>
				</table>
				</div>

				<br />
				<br />

				<div style="padding:8px;">
					<div id="video_box"><?php echo smarty_function_module(array('module' => 'Video','component' => 'AjaxBox','sType' => 'featured'), $this);?>
</div>
				</div>

				</td>
			</tr>
		</table>
		</td>
	</tr>
	</table>
	</div>
</td><td style="width:35%; vertical-align:top;">

	<?php if ($this->_tpl_vars['aRand']): ?>
	<div style="text-align:center;">
		<div style="font-size:10pt; font-weight:bold; padding-bottom:10px;"><?php echo smarty_function_language(array('text' => 'Mod_Video.hot_video'), $this);?>
</div>
		<?php echo smarty_function_videoplayer(array('url' => $this->_tpl_vars['vidUrl'],'width' => '250','height' => '150'), $this);?>

		<div class="jquery_background">
		<div style="text-align:left; margin-top:6px; padding:8px;" class="border13" id="round_hot_video">
			<span style="font-size:10pt; font-weight:bold;"><a href="<?php echo smarty_function_url(array('link' => 'public.videos','id' => $this->_tpl_vars['aRand']['vid_id'],'foxseotitle' => $this->_tpl_vars['aRand']['vid_title']), $this);?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['aRand']['vid_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('clean', true, $_tmp) : smarty_modifier_clean($_tmp)); ?>
</a></span>
			<div style="padding:6px;">
				<?php echo smarty_function_language(array('text' => 'Mod_Video.added.on'), $this);?>
: <?php echo ((is_array($_tmp=$this->_tpl_vars['aRand']['vid_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['sDateTimeFormat']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['sDateTimeFormat'])); ?>

				<br />
				<?php echo smarty_function_language(array('text' => 'Mod_Video.add.by'), $this);?>
: <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aRand']['user']), $this);?>
"><?php echo $this->_tpl_vars['aRand']['user']; ?>
</a>
			</div>
			<?php if (isStaff ( )): ?>
			<div style="padding:4px; text-align:right;">
				( <a href="<?php echo smarty_function_url(array('link' => 'public.videos','dhotvideo' => 'true'), $this);?>
"><?php echo smarty_function_language(array('text' => 'Mod_Video.remove_hot_video'), $this);?>
</a> )
			</div>
			<?php endif; ?>
		</div>
		</div>
	</div>
	<br />
	<?php endif; ?>

    <table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
    <td class="border2">
    	<table style="width: 100%;cursor:pointer;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0" onclick="SwitchMenu('sub6','hidetext6')">
        <tr>
        <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
        <td class="block_header"><?php echo smarty_function_language(array('text' => 'Mod_Video.block_categories'), $this);?>
</td>
        <td style="text-align:right;padding-right:4px;"><span class="cur" id="hidetext6">[-]</span></td>
        </tr>
        </table>
        <div class="submenu" id="sub6" style="padding:4px; text-align:center;">
        <table style="font-size:10pt; font-weight:bold; width:100%;">
        <tr>
		<?php $_from = $this->_tpl_vars['aCats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['iNum'] => $this->_tpl_vars['aItem']):
?>
		<td style="width:50%;">
			<a href="<?php echo smarty_function_url(array('link' => 'public.videos','listid' => $this->_tpl_vars['aItem']['list_id'],'foxseotitle' => $this->_tpl_vars['aItem']['list_name']), $this);?>
"><?php echo smarty_function_language(array('translate' => $this->_tpl_vars['aItem']['list_name']), $this);?>
</a>
		</td>
		<?php if ((1 & $this->_tpl_vars['iNum'])): ?>
		</tr><tr>
		<?php endif; ?>
		<?php endforeach; endif; unset($_from); ?>
		</td>
		<td>
		</tr>
		</table>
		</div>
    </td>
    </tr>
    </table>
	<br />

	<?php echo smarty_function_module(array('module' => 'Tag','component' => 'List','type' => 'videos'), $this);?>


	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	    <td align="center">
	        <?php echo smarty_function_module(array('module' => 'Ads','component' => 'ShowAds','place' => 4), $this);?>

	    </td>
	</tr>
	</table>

</td>
</tr>
</table>